﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using Big2.CardsLib;
using Big2.Big2Game;

namespace Big2.Big2WcfService
{
    [ServiceContract]
    public interface IBig2ServerServiceCallback
    {
        [OperationContract(IsOneWay = true)]
         void PLayerLeft(string playerName);

        [OperationContract(IsOneWay = true)]
        void PlayerJoin(string name);

        [OperationContract(IsOneWay = true)]
        void GameStarted(List<string> playersInGame);

        [OperationContract(IsOneWay = true)]
        void DealHandToPlayer(Hand hand);

        [OperationContract(IsOneWay = true)]
        void CurrentPlay(Play currentPLay);

        [OperationContract(IsOneWay = true)]
        void PlayerTurn(Play currentPlay);

        [OperationContract(IsOneWay = true)]
        void GameEnd(string winnderName, List<Player> players);

        [OperationContract(IsOneWay = true)]
        void NewTalkMSG(string msg);
    }
}
